#include <stdio.h>
#include <pthread.h>
#include "../include/timer.h"
#include "../include/interrupt.h"

int main() 
{
	int ret;
	
	Interrupt *interrupt = interrupt_create();
	Timer *timer = timerr_create(interrupt);

	pthread_t t_timer;

	pthread_attr_t at;
	pthread_attr_init(&at);

	pthread_create(&t_timer, &at, &run_timer, (void*)timer);
  	ret = pthread_join(t_timer, NULL);
  	
  	printf("ret: %d.\n", ret);
  
	return 0;
}

